package cn.wolfcode.trip.app.controller;

import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.query.TravelCommendQueryObject;
import cn.wolfcode.trip.base.query.TravelQueryObject;
import cn.wolfcode.trip.base.service.ITravelCommendService;
import cn.wolfcode.trip.base.service.ITravelService;
import cn.wolfcode.trip.base.util.JSONResult;
import cn.wolfcode.trip.base.util.UserContext;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

//游记推荐资源控制器
@RestController
@RequestMapping("travelCommends")
public class TravelCommendController {
    //关联service
    @Autowired
    private ITravelCommendService travelCommendService;

    @GetMapping
    public PageInfo query(TravelCommendQueryObject qo){
        return travelCommendService.queryForAppList(qo);

    }


}
